package com.eurobcoin.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class MainController {

	private static final Logger logger = LoggerFactory.getLogger(MainController.class);
	
	private static final String INDEX_VIEW = "index";
	
	public MainController() {
		logger.info("Starting MainController.");
	}
	
	@RequestMapping(value="/index.html", method=RequestMethod.GET)
	public ModelAndView doIndex() throws Exception {

		ModelAndView ret = new ModelAndView(INDEX_VIEW);

		return ret;
	}
	
}
